package com.zj.whichone.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zj.whichone.bean.Menu;
import com.zj.whichone.service.MenuService;

@Controller
@RequestMapping("/menu")
public class MenuController {
	@Autowired
	MenuService menuService;
	@RequestMapping("/list")
	public List<Menu> list(){
		return menuService.list();
	}
}
